package com.uam.core.entity.enums;

import com.uam.core.lk.utils.ErrorInterface;

public enum ErrorCode implements ErrorInterface {

	ID_IS_NOT_EXIST(1, "ID不存在"), ID_IS_ILLEGAL(2, "ID不合法"), NO_DATA(3, "没有数据"), NO_ROUTE_DATA(4, "没有航线数据"),
	NO_FIELD_DATA(5, "没有字段数据");

	private int errorCode = 0;

	private String errorMessage = null;

	private ErrorCode(int errorCode, String errorMessage) {
		this.errorCode = errorCode;
		this.errorMessage = errorMessage;
	}

	@Override
	public int getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(int errorCode) {
		this.errorCode = errorCode;
	}

	@Override
	public String getErrorMessage() {
		return errorMessage;
	}

	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}
}
